package codingforgreat.lchot150;

public class Lc326 {
    public boolean isPowerOfThree(int n) {
        return (n > 0 && 1162261467 % n == 0);
    }
    public static void main(String[] args) {
        int n = 1;
        int temp = 0;
        while(n > 0){
            temp = n;
            n*=3;
        }
        System.out.println(temp);
    }
}
